package com.wanmait.wisdom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.wisdom.entity.Complaint;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* Created by Mybatis Generator 2024/04/26
*/
public interface ComplaintMapper extends BaseMapper<Complaint> {
    int deleteByPrimaryKey(Integer id);

    int insert(Complaint record);

    int insertSelective(Complaint record);

    Complaint selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Complaint record);

    int updateByPrimaryKey(Complaint record);

    List<Complaint> selectAllComplaints();

    Complaint selectByID(Integer id);

    List<Complaint> searchComplaintByCondition(@Param("complaint") Complaint complaint, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
